/**
 * Create by CaoWenjian
 *
 * @copyRight: 2018
 **/
package com.bjboot.caocao.system.dao;

import com.bjboot.caocao.system.domain.UserDO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

/**
 *@Description 用户表对应接口
 *@Author 操文健
 *@Date 2018-09-05 下午3:59
 *@Version 1.0
 **/
@Mapper
public interface UserDao {

	UserDO get(Long userId);
	
	List<UserDO> list(Map<String, Object> map);

	int count(Map<String, Object> map);
	
	int save(UserDO user);
	
	int update(UserDO user);
	
	int remove(Long userId);
	
	int batchRemove(Long[] userIds);

	// 查询用户表中所有的部门信息
	Long[] listAllDept();

}
